let show = new showNode();
show.addData(json_data_1);

//初始函数
let fadeM = new fadeModel();
fadeM.checkTwoRank();
fadeM.checkFade();
fadeM.startMenuShow();
//初始屏幕适应
show.adoptScreen();
//监视窗口动作
tool.on(window, 'resize', function () {
    fadeM.changeRightPadding();
    clearTimeout(tool.timer);
    tool.timer = setTimeout(function () {
        show.adoptScreen()
    }, 5)
});
//监视滚轮动作
let scroll = getClass("right-inner")[0];
tool.on(scroll, 'scroll', function () {
    // console.log(tool.getScrollTop(scroll));
    // console.log(show.getMinHeight());
    clearTimeout(tool.timer2);
    if (show.getMinHeight() < tool.getScrollTop(scroll)) {
        show.addData(json_data_2);
        tool.timer2 = setTimeout(function () {
            show.adoptScreen()
        }, 5)
    }
});
